<?php
namespace app\common\validate;
use think\Validate;
class UserAdd extends Validate
{
    protected $rule = [
        'uid'   => 'require|length:6',
        'phone'   => 'require|length:18',
        'username'     => 'require',
        'password'   => 'require|length:6,16',
       
    ];
    protected $message = [
        'uid.require'   => 'uid长度必须为6位',
        'phone.require'   => '请输入会员账号',
        'phone.length'    => '电话号码长度必须为11位',
        'username.require'     => '请输入会员名称',
        'password.require'   => '请输入登录密码',
        'password.length'    => '密码长度必须为6-16位',
    ];
}